Edit Task: SetPossibility TimesReport
Description
The SetPossibility TimesReport attribute under EditTask overrides and explicitly sets the list of report times for a possibility's timeslot's report list. This set of times is then used in calculating the final set of timeslots for this possibility. Previously existing times will not be deleted by this command.
Parameters
Parameter | Description |
---|---|
PossibilityName | A string of text with a comma delimited list of resources in the possibility, surrounded by single quotes. Order is not required and the resource names should not be in quotes. |
Start | Represents the start time for a possibility report time. This time should be space delimited and in the same format as the times used in the Time Import Files. The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. |
Stop | Represents the stop time for a possibility report time. This time should be space delimited and in the same format as the times used in the Time Import Files. The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. |
Examples
Set 2 new time sets for the ResA possibility.
PATCH api/task/TaskA
Body:
{
"SetPossibility" : {
"PossibilityName" : "ResA",
"TimesReport" : {
"Start" : "2015/01/01_03:00:00",
"Stop" : "2015/01/01_03:45:00" }
"TimesReport" : {
"Start" : "2015/01/01_07:17:21",
"Stop" : "2015/01/01_12:00:00" }
}
}